\hypertarget{_a_d_c___state_machine_8h}{\section{A\-D\-C\-\_\-\-State\-Machine.\-h File Reference}
\label{_a_d_c___state_machine_8h}\index{A\-D\-C\-\_\-\-State\-Machine.\-h@{A\-D\-C\-\_\-\-State\-Machine.\-h}}
}


Header file for the A\-D\-C state machine.  


{\ttfamily \#include \char`\"{}Analog\-\_\-\-Input.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}boolean.\-h\char`\"{}}\\*
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{group__adc__statemachine_gae8acd7c093ba943ff020756662d8e282}{A\-D\-C\-\_\-\-State\-\_\-t} \{ \\*
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282ac1bd0f71a88c6a0448812f5c9bfabc82}{A\-D\-C\-\_\-\-U\-N\-I\-N\-I\-T\-I\-A\-L\-I\-Z\-E\-D}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282a3dd35159e362e102ff3857defd2ee5ec}{A\-D\-C\-\_\-\-I\-N\-I\-T\-I\-A\-L\-I\-Z\-E\-D}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282ad44134e74eaafda748b36b62b64b3ffb}{A\-D\-C\-\_\-\-C\-A\-L\-I\-B\-R\-A\-T\-I\-N\-G}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282a1ce1ead9375dee706ff6e8df4012e845}{A\-D\-C\-\_\-\-G\-A\-I\-N\-\_\-\-C\-A\-L\-I\-B\-R\-A\-T\-I\-N\-G}, 
\\*
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282aa37cde1dabf7658cc9bb359dc7ad7ce8}{A\-D\-C\-\_\-\-I\-D\-L\-E}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282ac39ce4086e8ea9dbbbe721d237b0e58d}{A\-D\-C\-\_\-\-C\-H\-A\-N\-N\-E\-L\-\_\-\-S\-A\-M\-P\-L\-I\-N\-G}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282a49f30e17bd4e0529efe8855e9dc163bc}{A\-D\-C\-\_\-\-R\-E\-S\-E\-T}, 
\hyperlink{group__adc__statemachine_ggae8acd7c093ba943ff020756662d8e282a09bb7081acebf276c0dd4ada41696612}{A\-D\-C\-\_\-\-E\-X\-T\-E\-R\-N\-A\-L\-\_\-\-M\-U\-X\-I\-N\-G}
 \}
\begin{DoxyCompactList}\small\item\em A\-D\-C state machine state definitions. Defines all the possible states for the A\-D\-C state machine to be in. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__adc__statemachine_gaf9ab485b0fb6ddf69c8bfb43597ab06b}{A\-D\-C\-\_\-\-Machine\-\_\-\-Create} (void)
\begin{DoxyCompactList}\small\item\em Create the A\-D\-C state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_gaabf53da7a14f298b049ed2ad432b0ed6}{A\-D\-C\-\_\-\-Machine\-\_\-\-Init} (void)
\begin{DoxyCompactList}\small\item\em Initialize the A\-D\-C state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga7eb6744d5738bf35b1cb86b44cdc99ad}{A\-D\-C\-\_\-\-Calibrate} (void)
\begin{DoxyCompactList}\small\item\em Perform a self zero calibration. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga91d632b5c373982d2554840a65e89758}{A\-D\-C\-\_\-\-Gain\-Calibrate} (Physical\-Analog\-Input\-\_\-t input)
\begin{DoxyCompactList}\small\item\em Perform a system gain calibration on the specified input. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga89889fc7c9dba41da2ab451fe5e06d68}{A\-D\-C\-\_\-\-Machine\-\_\-\-Service} (void)
\begin{DoxyCompactList}\small\item\em Perform a periodic service of the state machine. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga6424732e3475cc653a8e7cd3598555f5}{A\-D\-C\-\_\-\-Machine\-\_\-\-Halt} (void)
\begin{DoxyCompactList}\small\item\em Halt any current operations and return the idle state. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_gac1ea03f0a36d3488bfb5c728b118942c}{A\-D\-C\-\_\-\-Machine\-\_\-\-Idle} (void)
\begin{DoxyCompactList}\small\item\em Idle state handler. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga979620e2e4743c8f5d1f053a90705841}{A\-D\-C\-\_\-\-Machine\-\_\-\-Input\-\_\-\-Sample} (\hyperlink{struct_analog___input__t}{Analog\-\_\-\-Input\-\_\-t} $\ast$$\ast$inputs, uint32\-\_\-t count, \hyperlink{group__data__types_ga0ecf26b576b9a54eca656b9be7ba6a06}{bool} single\-Channel)
\begin{DoxyCompactList}\small\item\em Input sampling state handler. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_ga82e1537e4763ba13d894276ab9de1cd7}{A\-D\-C\-\_\-\-Machine\-\_\-\-Reset} (void)
\begin{DoxyCompactList}\small\item\em Reset state handler. \end{DoxyCompactList}\item 
void \hyperlink{group__adc__statemachine_gafdb90e36c49985480868585799f00b22}{A\-D\-C\-\_\-\-External\-\_\-\-Muxing} (void)
\begin{DoxyCompactList}\small\item\em External multiplexer switch handler. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Contains public constants, typedefs and function prototypes for the A\-D\-C state machine.

\begin{DoxyAuthor}{Author}
Jared Woolston (\href{mailto:jwoolston@tenkiv.com}{\tt jwoolston@tenkiv.\-com}) 
\end{DoxyAuthor}
\begin{DoxySince}{Since}
v1.\-0.\-0.\-0 
\end{DoxySince}


Definition in file \hyperlink{_a_d_c___state_machine_8h_source}{A\-D\-C\-\_\-\-State\-Machine.\-h}.

